﻿using System;
using System.Data;
using System.Web;
using System.Web.UI.HtmlControls;
using AnyOffice.Components;
using log4net;
using System.Reflection;
using AjaxPro;


namespace AnyOffice.general.status_bar
{
    public partial class help_index : BasePage
    {
        public int ajaxInternal;
        public string callsound;
        private static ILog log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
        public string smson;

       
        public help_index()
        {
            this.smson = string.Empty;
            this.callsound = string.Empty;
            this.ajaxInternal = 30000;
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            Response.AppendHeader("Expires", DateTime.Now.AddDays(-1.0).ToString("r"));
            Response.AppendHeader("Pragma", "no-cache");
            Response.AppendHeader("Cache-Control", "no-store, no-cache, must-revalidate, post-check=0, pre-check=0");
            Utility.RegisterTypeForAjax(typeof(AjaxMethods));
            try
            {
                ConfigManager manager = new ConfigManager();
                this.ajaxInternal = manager.AjaxInterval;
                UserCache cache = new UserCache();
                this.smson = cache.SmsOn.ToString().ToLower();
                this.callsound = cache.CallSound.ToString();
            }
            catch (Exception exception)
            {
                if (log.IsErrorEnabled)
                {
                    log.Error("", exception);
                }
            }
        }


    }
}
